﻿{% extends 'base.html' %} 

<!-- 导入css和js -->
{% block cssAndjava %}
<link rel=stylesheet type="text/css" href="/css/itemchange.css">
{% endblock cssAndjava %} 

<!-- 修改页边 -->
{% block pageside %}
{% endblock pageside %}


<!-- 修改主体内容 -->
{% block mainbody %}
<div class="itembody">
	<!-- 表单 -->
	<form action="/budget/" method="POST">
		<table>
			<tr><th>{{ form.itemname.label_tag }}*</th><td>{{ form.itemname }}</td><td>{{form.itemname.errors}}</td></tr>
			<tr><th>{{ form.price.label_tag }}</th><td>{{ form.price }}</td><td>{{form.price.errors}}</td></tr>
			<tr><th>{{ form.num.label_tag }}*</th><td>{{ form.num }}</td><td>{{form.num.errors}}</td></tr>
			<tr><th>{{ form.priceall.label_tag }}</th><td>{{ form.priceall }}</td><td>{{form.priceall.errors}}</td></tr>
			<tr><th>{{ form.satisfaction.label_tag }}*</th><td>{{ form.satisfaction }}</td><td>{{form.satisfaction.errors}}</td></tr>
			<tr><th>{{ form.brand.label_tag }}</th><td>{{ form.brand }}</td><td>{{form.brand.errors}}</td></tr>
			<tr><th>{{ form.market.label_tag }}</th><td>{{ form.market }}</td><td>{{form.market.errors}}</td></tr>
			<tr><th>{{ form.otherinfo.label_tag }}</th><td>{{ form.otherinfo }}</td><td>{{form.otherinfo.errors}}</td></tr>
			<tr><td><input type="hidden" name="idx" value={{idx}}></td></tr>
			<tr><td><input type="hidden" name="itemid" value={{itemid}}></td></tr>
		</table>
		<div class="divButton">
			<input type="submit" value="保存" />&nbsp&nbsp
			<input type="reset" value="还原" />&nbsp&nbsp
			<input type="button" value="放弃" onclick="parent.location='/budget/1/{{itemid}}_{{idx}}'"  />
		</div>
	</form>
	<!-- 表单结束 -->
</div>
{% endblock mainbody %}